﻿namespace OboutInc.Flyout2.Effects
{
    using OboutInc.Flyout2;
    using System;

    [Serializable]
    internal class Sliding : Effect
    {
        private SlidingEffectStyle direction;
        private int range;

        public Sliding(SlidingEffectStyle Direction, int Range)
        {
            this.direction = Direction;
            this.range = Range;
        }

        public override string libraryLocation()
        {
            return "OboutInc.Flyout2.script.effect_sliding.js";
        }

        public override string renderInit()
        {
            return ("new SlidingEffect('" + this.direction.ToString() + "'," + this.range.ToString() + ")");
        }
    }
}

